﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MvcShoppingMall.Helper
{
    public class HelperString
    {
        public static string SubStringEx(object obj, int len = 8)
        {
            string str = obj.ToString().Length > len ? obj.ToString().Substring(0, len) + "....." : obj.ToString();
            return str;
        }
    }
}